package pl.edu.agh.iosr.gamblingzone.dao;

import pl.edu.agh.iosr.gamblingzone.model.User;

/**
 * The Interface UserDAO.
 */
public interface UserDAO extends GenericDAO<User, Long>  {
	
	/**
	 * Find by login.
	 * 
	 * @param login the login
	 * 
	 * @return the user
	 */
	public User findByLogin(String login);
	
	/**
	 * Authenticate user using login and password.
	 * 
	 * @param login the login
	 * @param password the password
	 * 
	 * @return true, if authenticate user
	 */
	public boolean authenticateUser(String login, String password);
}
